package net.dgg.zz.common.service;

import net.dgg.zz.common.base.service.BaseService;
import net.dgg.zz.common.dao.PlaceCodeAreaDao;
import net.dgg.zz.common.entity.PlaceCodeArea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author zihao.wang
 * @Date2020/7/20 14:18
 * @Description 事业部位置-地区 映射(已废弃，被数据字典替代)
 */
@Service
@Deprecated
public class PlaceCodeAreaService extends BaseService {
    @Autowired
    private PlaceCodeAreaDao placeCodeAreaDao;

    /**
     * 通过事业部位置查询
     * @param placeCode
     * @return PlaceCodeArea
     */
    public PlaceCodeArea getByPlaceCode(String placeCode){
        return placeCodeAreaDao.getByPlaceCode(placeCode);
    }
}
